import { ref } from "vue";
import { defineStore } from "pinia";

export const ShowPopup = defineStore("ShowPopup", () => {
  const visible = ref(false);
  const component = ref("");

  const setter = (_visible, _component = "") => {
    visible.value = _visible;
    component.value = _component;
  };

  return { visible, component, setter };
});
